<template>
  <div>
    <p>请选择你喜欢的专栏</p>
    <div>
      <input type="checkbox" v-model="list" value="科幻" />科幻
      <input type="checkbox" v-model="list" value="喜剧" />喜剧
      <input type="checkbox" v-model="list" value="动漫" />动漫
      <input type="checkbox" v-model="list" value="冒险" />冒险
      <input type="checkbox" v-model="list" value="科技" />科技
      <input type="checkbox" v-model="list" value="军事" />军事
      <input type="checkbox" v-model="list" value="娱乐" />娱乐
      <input type="checkbox" v-model="list" value="奇闻" />奇闻
    </div>

    <div>
      <ul>
        <li v-for="(val, index) in list">
          {{ val }}
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [],
    };
  },
};
</script>

<style>
</style>